//
//  CustomSegmentControlView.h
//  CityFire
//
//  Created by Liuyz on 2017/8/5.
//  Copyright © 2017年 刘养柱. All rights reserved.
//

#import "BaseView.h"

typedef void(^ButtonOnClickBlock)(NSInteger tag, NSString * title);

@interface CustomSegmentControlView : BaseView

@property (nonatomic, strong) NSArray *titles;                      //标题数组
@property (nonatomic, strong) UIColor *titlesCustomeColor;          //标题的常规颜色
@property (nonatomic, strong) UIColor *titlesHeightLightColor;      //标题高亮颜色
@property (nonatomic, strong) UIColor *backgroundHeightLightColor;  //高亮时的颜色
@property (nonatomic, strong) UIFont *titlesFont;                   //标题的字号
@property (nonatomic, assign) CGFloat duration;                     //运动时间

@property (nonatomic, assign) CGFloat y; //7
@property (nonatomic, assign) CGFloat width; //20
@property (nonatomic, assign) CGFloat height; //15
@property (nonatomic, assign) CGFloat cornerRadius; //15

/**
 *  点击按钮的回调
 *
 *  @param block 点击按钮的Block
 */
-(void) setButtonOnClickBlock: (ButtonOnClickBlock) block;

-(void) selectTabIndex:(NSInteger) index;


@end
